﻿using ShapeManager;
using System.Diagnostics;
using System;
using System.Windows.Forms;
using UserControls;

namespace Tools
{
    public class ToolEllipse : ToolRectangle
    {
        public ToolEllipse()
        {
            try
            {
                Cursor = new Cursor("Cursor/Ellipse.cur");
            }
            catch (Exception ex)
            {
                Cursor = Cursors.Default;
                Debug.WriteLine(ex.Message);
            }
            
        }
        public override void OnMouseDown(UImageWindow uImageWindow, MouseEventArgs e)
        {
            AddNewObject(uImageWindow, new UEllipse(e.X, e.Y, 1, 1));
        }
    }
}
